import request from '@/utils/request'

// 获取订单列表
export function getOrderList() {
  return request({
    url: '/shopOrder/list',
    method: 'get'
  })
}

// 添加订单
export function addOrder(data) {
  return request({
    url: '/shopOrder',
    method: 'post',
    data
  })
}

// 更新订单
export function updateOrder(orderId, data) {
  return request({
    url: `/shopOrder/${orderId}`,
    method: 'put',
    data
  })
}

// 删除订单
export function deleteOrder(orderId) {
  return request({
    url: `/shopOrder/${orderId}`,
    method: 'delete'
  })
} 